//
//  THJDataProduceCell.m
//  THJXHW
//
//  Created by 河南德艺 on 2017/11/1.
//  Copyright © 2017年 河南德艺. All rights reserved.
//

#import "THJDataProduceCell.h"
#import <UIImageView+WebCache.h>

@implementation THJDataProduceCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)setCellContentWithDic:(NSDictionary*)dic{
    if(dic){
        if([dic[@"alloy_flag"] isEqual:@"0"]){
            self.alloyLab.hidden = YES;
        }else{
            self.alloyLab.hidden = NO;
        }
        if([dic[@"company_flag"] isEqual:@"0"]){
            self.renZhengLab.hidden = YES;
        }else{
            self.renZhengLab.hidden = NO;
        }
        NSLog(@"dic--%@",dic);
        [self.imgV sd_setImageWithURL:[NSURL URLWithString:dic[@"thumb"]] placeholderImage:kGetImage(@"占位图")];
        self.titleLab.text = dic[@"title"];
        self.addressLab.text = dic[@"address"];
        self.companyLab.text = dic[@"company"];
    }
}
@end
